package org.zoomdev.zoom.common.caster;

import java.lang.reflect.Type;

public abstract class CasterProviderWithClass implements CasterProvider {
    @Override
    public ValueCaster getCaster(Class<?> srcType, Type toType) {
        if (toType instanceof Class) {
            return getCaster(srcType, (Class<?>) toType);
        }
        return null;
    }

    protected abstract ValueCaster getCaster(Class<?> srcType, Class<?> toType);
}
